﻿using BlawkayEngine;
using BlawkayEngine.ScreenSystem;
using Microsoft.Xna.Framework;

namespace BlawkayHockey
{
    public class MainMenuScreen : HomeMenuScreen
    {

        public MainMenuScreen(Game oGame)
            : base(oGame, "Main Menu")
        {
            for (MenuOptions oOption = MenuOptions.Play_Now; oOption <= MenuOptions.Exit; oOption++)
            {
                AddMenuOption(oOption.ToString());
            }

        }

        protected override void Select(ScreenManager oManager)
        {
            switch ((MenuOptions)Index)
            {
                case MenuOptions.Play_Now:
                    GoToDestination(HomeDestination.PlayNow, oManager);
                    break;
                case MenuOptions.Xbox_Live:
                    GoToDestination(HomeDestination.XboxLive, oManager);
                    break;
                case MenuOptions.Options:
                    GoToDestination(HomeDestination.OptionsMenu, oManager);
                    break;
                case MenuOptions.Exit:
                    oManager.Game.Exit();
                    break;
                default:
                    GoToDestination(HomeDestination.Main, oManager);
                    break;
            }
        }

        protected override void Cancel(ScreenManager oManager)
        {
        }

        private enum MenuOptions
        {
            Play_Now,
            Xbox_Live,
            Options,
            Exit
        }

    }
}
